var express = require('express');
var router = express.Router();


var edetailCtrl = require('../controllers/edetailCtrl');
// router.get('/home', function (req, res) {
//
//     return res.redirect(303, '/views/enoteHome.html');
// });


router.get('/', edetailCtrl.get);
router.get('/:id', edetailCtrl.getOne);
router.post('/add', edetailCtrl.add);
router.post('/update', edetailCtrl.update);
router.post('/delete', edetailCtrl.remove);

module.exports = router;
